package pers.cocoadel.springcloud.service;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import pers.cocoadel.springcloud.entities.CommonResult;
import pers.cocoadel.springcloud.entities.Payment;

/**
 * @author rwby
 */
@FeignClient(value = "CLOUD-PAYMENT-SERVICE")
public interface PaymentService
{
    @GetMapping("/payment/get/{id}")
    CommonResult<Payment> getById(@PathVariable("id") Long id);

    @GetMapping("/payment/feign/time_out")
    String getPaymentTimeOut();
}
